package com.xjtu.conan.service;

import com.xjtu.conan.entity.NewsImagesInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.conan.entity.TheatreImagesInfo;
import com.xjtu.conan.entity.UserInfo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 新闻图片表 服务类
 * </p>
 *
 * @author 一只黑猩猩
 * @since 2021-04-19
 */
public interface NewsImagesInfoService extends IService<NewsImagesInfo> {
    public List<NewsImagesInfo> getAllNewsImageInfo(int current, int size);

    public NewsImagesInfo getNewsImageByid(Long niid);

    public int addNewsImages(MultipartFile[] images, Long nid, UserInfo loginUser) throws IOException;

    public List<NewsImagesInfo> getNewsImagesBynid(Long nid);

    public int deleteNewsImages(Long niid);

    public int getTotal();
}
